use beta_by_country_since1990


sum top1 next9 middle40 bottom50
sum top1 next9 middle40 bottom50 if oecd==1
sum top1 next9 middle40 bottom50 if oecd==0





graph twoway (scatter bottom50 top1 if oecd==1, msymbol(T) msize(small) mlabel(countrycode)) (scatter bottom50 top1 if oecd==0, msize(small) mlabel(countrycode)) (function y=x, lpattern(dash) range(-1 3))




gen diff=top1-bottom50
gen logsize2005=log(mdmh2005) if mdmh2005>0 & mdmh2005<888
gen loggdp2005=log(gdp2005)

sum diff yr_sch2005 mdmh2005 govtexp2005 property_right_2005 gdp2005 if mdmh2005>0 & mdmh2005<888 & yr_sch2005<. & property_right_2005<.



reg diff yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005, robust
reg diff yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if oecd==1, robust
reg diff yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if oecd==0, robust
reg diff yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if gdp2005<15000, robust

reg top1 yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005, robust
reg top1 yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if oecd==1, robust
reg top1 yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if oecd==0, robust
reg top1 yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if gdp2005<15000, robust

reg bottom50 yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005, robust
reg bottom50 yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if oecd==1, robust
reg bottom50 yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if oecd==0, robust
reg bottom50 yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if gdp2005<15000, robust

reg diff yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if cont_north_america==1 | cont_europe==1, robust
reg diff yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if cont_asia==1 | cont_oceania ==1, robust
reg diff yr_sch2005 logsize2005 govtexp2005 property_right_2005 loggdp2005 if cont_africa==1, robust
